from flask import session
from flask_migrate import  MigrateCommand
from flask_script import Manager


from Iinfo import create_app

app = create_app("pro")
# 管理器生成迁移命令
# 创建管理器
mgr = Manager(app)

mgr.add_command("mc", MigrateCommand)

@app.route("/")
def index():
    session["age"] = 20
    return "index"

if __name__ == '__main__':
    mgr.run()